extract data using left right mid functions